<?php
class We7Utility {
	static public $domain = 'http://pro.we7.cc/';
	static public $I;
	static public function login() {
		$I = self::$I;
		$I->amOnUrl(self::$domain);
		$I->seeElement('input', [
			'value' => '登录'
		]);
	
		$I->fillField(array(
			'name' => 'username'
		), 'admin');
		$I->fillField(array(
			'name' => 'password'
		), '123456');
		$I->submitForm('#form1', array(), 'submit');
		$I->see('请选择您要操作的公众号');
	}
	
	static public function switchAccount($uniacid) {
		$self = self::$I;
		$self->amOnUrl(self::$domain . 'index.php?c=account&a=display&do=switch&uniacid=' . $uniacid);
		$self->see('今日新关注');
	}
}